Json

public interface Json

A helper class that allows converting JavaScript objects into a JSON string and creating JavaScript objects from a JSON string.

When the web page is unloaded, all the JavaScript objects will be automatically disposed. Access to the already disposed JavaScript object will lead to the IllegalStateException.

Functions

Link copied to clipboard
@Nullable()
public abstract T parse<T>(String json)
Creates an object that represents the result of parsing the given string in JSON format.
Link copied to clipboard
public abstract String stringify(JsObject jsObject)
Converts the given JavaScript object into a JSON string.